package com.suixun.entity;
/**
 * 
 * 功能描述:  抽象出来的设备消息类
 * @author jacky
 * @date 2018年1月26日下午4:41:44
 */
public abstract class DeviceMessage extends BaseMessage{

	/**
	 * 接收设备号	IMEI
	 */
	private String imei;
	
	/**
	 * 消息ID
	 */
	private String cmd;

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}
	
	@Override
	public String getCmd() {
		return cmd;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
	
	@Override
	public String getPacket() {
		 StringBuilder stb = new StringBuilder();
	        stb.append(cmd)
	                .append(",")
	                .append(imei);
	        return stb.toString();
	}
	
}
